EntryModificationScreen

fun EntryModificationScreen(modifier: Modifier = Modifier, viewModel: JournalViewModel = hiltViewModel(), id: String? = null, openDrawer: () -> Unit, onNavigateBack: () -> Unit)

Composable for the EntryModification page. It can be used for either creating a new entry or editing an existing one. If no entry ID is provided, the fields will be empty for a new entry. If an ID is provided, the fields will be populated with the data from the existing entry.

Parameters

modifier

Modifier to be applied to the composable.

viewModel

The ViewModel providing the UI state.

id

The ID of the journal entry to modify, or null for new entry creation.

openDrawer

A lambda to open the navigation drawer.

onNavigateBack

A lambda to navigate back to the previous screen.